home *** CD-ROM | disk | FTP | other *** search
/ The 640 MEG Shareware Studio 2 / The 640 Meg Shareware Studio CD-ROM Volume II (Data Express)(1993).ISO / clang / nn.zip / S-BSD4-3.H < prev    next >
C/C++ Source or Header  |  1989-12-31  |  3KB  |  157 lines

  1. /*
  2.  *    This version is for 4.3 systems
  3.  */
  4.  
  5.  
  6. /*
  7.  *    Include haeder files containing the following definitions:
  8.  *
  9.  *         off_t, time_t, struct stat
  10.  */
  11.  
  12. #include <sys/types.h>
  13. #include <sys/stat.h>
  14.  
  15.  
  16. /*
  17.  *    Define if your system has system V like ioctls
  18.  */
  19.  
  20. #undef    HAVE_TERMIO            /* */
  21.  
  22. /*
  23.  *    Define to use terminfo database.
  24.  *    Otherwise, termcap is used
  25.  */
  26.  
  27. #undef    USE_TERMINFO            /* */
  28.  
  29. /*
  30.  *    Specify the library (or libraries) containing the termcap/terminfo
  31.  *    routines.
  32.  *
  33.  *    Notice:  nn only uses the low-level terminal access routines
  34.  *    (i.e. it does not use curses).
  35.  */
  36.  
  37. #define TERMLIB    -ltermlib
  38.  
  39. /*
  40.  *    Define HAVE_STRCHR if strchr() and strrchr() are available
  41.  */
  42.  
  43. #include <string.h>
  44.  
  45. #undef HAVE_STRCHR            /* */
  46.  
  47. /*
  48.  *    Define if a signal handler has type void (see signal.h)
  49.  */
  50.  
  51. #undef    SIGNAL_HANDLERS_ARE_VOID    /* */
  52.  
  53. /*
  54.  *    Define MICRO_ALARM to timeout in 0.1 seconds if possible
  55.  */
  56.  
  57. #define MICRO_ALARM()    ualarm(100000,0)    /* BSD 4.3 */
  58.  
  59. /*
  60.  *    Define if your system has BSD like job control (SIGTSTP works)
  61.  */
  62.  
  63. #define HAVE_JOBCONTROL            /* */
  64.  
  65. /*
  66.  *    Define if your system has a 4.3BSD like syslog library.
  67.  */
  68.  
  69. #define HAVE_SYSLOG
  70.  
  71. /*
  72.  *    Define if your system provides the "directory(3X)" access routines
  73.  *
  74.  *    If true, include the header file(s) required by the package below
  75.  *    (remember that <sys/types.h> or equivalent is included above)
  76.  *    Also typedef Direntry to the proper struct type.
  77.  */
  78.  
  79. #define    HAVE_DIRECTORY            /* */
  80.  
  81. #include <sys/dir.h>            /* BSD */
  82.  
  83. typedef struct direct Direntry;        /* BSD */
  84.  
  85. /*
  86.  *    Define if your system has a mkdir() library routine
  87.  */
  88.  
  89. #define    HAVE_MKDIR            /* */
  90.  
  91. /*
  92.  *    Define if your system provides a BSD like gethostname routine.
  93.  *    Otherwise, define HAVE_UNAME if uname() is avaiable.
  94.  */
  95.  
  96. #define    HAVE_GETHOSTNAME    /* BSD systems */
  97.  
  98. /*
  99.  *    Define HAVE_MULTIGROUP if system has simultaneous multiple group
  100.  *    membership capability (BSD style).
  101.  *
  102.  *    Also define GIDSET_TYPE to the type of the elements in the array
  103.  *    initialized by getgroups() if different from "int" (many systems 
  104.  *    have a gid_t, but very few use it for getgroups()).
  105.  */
  106.  
  107. #define HAVE_MULTIGROUP
  108.  
  109. /* #define GIDSET_TYPE    gid_t    /* Newer 4.3 systems may use this */
  110.  
  111. /*
  112.  *    Define DETATCH_TERMINAL to be a command sequence which 
  113.  *    will detatch a process from the control terminal
  114.  *    Also include system files needed to perform this HERE.
  115.  *    If not possible, just define it (empty)
  116.  */
  117.  
  118. #include <sys/file.h>    /* for O_RDONLY */
  119. #include <sys/ioctl.h>    /* for TIOCNOTTY */
  120.  
  121. #define    DETATCH_TERMINAL \
  122.     { int t = open("/dev/tty", O_RDONLY); \
  123.       if (t >= 0) ioctl(t, TIOCNOTTY, (int *)0), close(t); }
  124.  
  125.       
  126. /* 
  127.  *    Specify where the Bourne Shell is.
  128.  */
  129.  
  130. #define SHELL        "/bin/sh"
  131.  
  132. /*
  133.  *    Specify the default mailer to be invoked by nnmail
  134.  */
  135.  
  136. #define    MAILX    "/usr/ucb/Mail"        /* BSD */
  137.  
  138.  
  139. /*
  140.  *    Specify the default pager & options.
  141.  */
  142.  
  143. #define    PAGER        "more"
  144.  
  145. /*
  146.  *    Specify the default print command and options.
  147.  */
  148.  
  149. #define    PRINTER        "lpr -p -JNN-print"
  150.  
  151.  
  152. /*
  153.  *    Define the maximum length of any pathname that may occur
  154.  */
  155.  
  156. #define    FILENAME     256
  157.